Introduction
The Knowledge Bases Module provides comprehensive functionality for managing knowledge repositories and performing semantic searches within the xpander.ai platform.Overview
In this module, you can:- Create and manage knowledge bases for document storage
- Add documents from URLs to knowledge repositories
- Perform semantic searches across document collections
- Delete and manage knowledge base lifecycle
- Handle both synchronous and asynchronous operations
Examples
Creating Knowledge Bases
This example demonstrates how to create new knowledge bases with both asynchronous and synchronous approaches.Asynchronous Example
Usingacreate()
to create knowledge bases asynchronously:
Synchronous Example
Usingcreate()
to create knowledge bases synchronously:
Listing Knowledge Bases
Retrieve all available knowledge bases in your organization.Asynchronous Example
Synchronous Example
Adding Documents
Add documents to knowledge bases from URLs.Asynchronous Example
Synchronous Example
Searching Knowledge Bases
Perform semantic searches across document collections.Asynchronous Example
Synchronous Example
Deleting Knowledge Bases
Remove knowledge bases when they’re no longer needed.Asynchronous Example
Synchronous Example
Continue to the [Knowledge Bases API Reference](/API reference/knowledge/API reference) for detailed documentation on classes and methods.
Related Documentation
Agents Module
Agent interaction with knowledge bases
Tools Repository
Tool integration and management
Configuration
SDK configuration and authentication
Tasks Module
Task execution and management
Support
For additional help:- Full SDK Documentation
- Email: dev@xpander.ai